package com.yc.boot.work.model.update;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;

/**
 * @Author:Yst
 * @Date:2021/11/10
 * @Time:14:55
 * @Info:
 */
@Data
@Accessors(chain = true)
@ApiModel("测试修改DTO")
public class UpdateTest {

    @NotNull
    @ApiModelProperty(value = "test的id",required = true)
    private Long id;

    @ApiModelProperty("test的名称")
    private String name;

    @Length(max=1)
    @ApiModelProperty("test的状态")
    private String status;

}
